package index.oop;

public class Student3 {
    //属性
    //1.姓名
    String name;
    //2.年龄
    int age;
    //3.身高
    double height;
    //4.性别
    String gender;
    //5.体重;
    int weight;
    //6.学号
    int id;
    //特征  方法:
    //1.学习
    public  void study(){
        System.out.println("studying java");
    }
    //2.考试
    public  void examination(){
        System.out.println("pass examination");
    }
    //3.休息
    public  void rest(){
        System.out.println("have rest");
    }
    //4.玩游戏
    public  void playGame(){
        System.out.println("play game");
    }
    //5.唱歌
    public  void sing(){
        System.out.println("singing");
    }
}
